package cn.iocoder.yudao.module.scenic.remote.model.param;

import cn.iocoder.yudao.module.scenic.remote.model.param.common.BodyParam;
import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;
import java.util.List;

@Schema(description = "管理后台 - 知识库上传附件 Request VO")
@Data
public class KnowledgeBaseUploadFileBodyParam extends BodyParam {

    @Schema(description = "文件附件", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "文件附件不能为空")
    @JSONField(name = "files")
    private List<MultipartFile> files;

    @Schema(description = "文件附件", example = "yudaoyuanma.png")
    private String path;

    @Schema(description = "知识库名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @JSONField(name = "knowledge_base_name")
    private String knowledgeBaseName;

    @Schema(description = "知识库中单段文本最大长度")
    @JSONField(name = "chunk_size")
    private Integer chunkSize;

    @Schema(description = "知识库中相邻文本重合长度")
    @JSONField(name = "chunk_overlap")
    private Integer chunkOverlap;

    @Schema(description = "是否开启中文标题加强")
    @JSONField(name = "zh_title_enhance")
    private String zhTitleEnhance;

    @Schema(description = "暂不保存向量库（用于FAISS）")
    @JSONField(name = "not_refresh_vs_cache")
    private String notRefreshVsCache;
}